import { commonTableOptions } from '@/utils/util'
export function modelListOption() {
  const self = this
  return {
    ...commonTableOptions,
    header: true,
    menuWidth: 170,
    height: 500,
    indexFixed: false,
    menuFixed: false,
    column: [
      {
        label: '告警模型',
        prop: 'modelCode',
        overHidden: true,
        dicData: self.modelArr
      },

      {
        label: '持续时间(分钟)',
        prop: 'continuousTime'
      },
      {
        label: '限速(节)',
        prop: 'minSpeed',
        formatter: (val, value, label) => {
          if (val.minSpeed != undefined && val.maxSpeed != undefined) {
            return `${val.minSpeed} - ${val.maxSpeed}节`
          }

          return '--'
        }
      },
      {
        label: '处理时效(分钟)',
        prop: 'processingAgeing'
      }
    ]
  }
}
